/*
 * @Description: vite配置 工具函数
 * @Author: Smellycat littlecandyi@163.com
 * @Date: 2024-06-14 14:57:11
 * @LastEditors: smellycat littlecandyi@163.com
 * @LastEditTime: 2025-04-13 00:33:34
 */

import { resolve } from 'path'

/**
 * 根据传入的路径获取绝对路径
 * @param {string} dir
 * @returns {string} path
 */
export const pathResolve = (dir: string): string => resolve(process.cwd(), '.', dir)
